package cn.msqweb.service.impl;

import cn.msqweb.entity.Member;
import cn.msqweb.mapper.MemberMapper;
import cn.msqweb.service.MemberService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService {

    @Resource
    private MemberMapper memberMapper;
    @Override
    public Boolean modifyMemberInfo(String openId, Member member) {
        return memberMapper.update(member,new LambdaQueryWrapper<Member>()
                .eq(Member::getOpenId, openId))>0;
    }
}
